package com.wjy.demo.error;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorType {

    AUTH_ERROR(401, "认证信息有误"),
    FORBIDDEN(403, "不允许访问"),
    SERVER_SEEOR(500, "服务异常"),

    LOGIN_INFO_ERROR(5000002, "登陆信息有误"),
    LOGIN_FIRST(5000003, "用户信息不存在"),
    ID_ERROR(5000004, "ID参数错误"),
    LOGIN_ERROR(5000005, "登录异常"),
    ERROR_PARAMS(500006, "参数错误"),
    USER_NOT_EXIST(500007, "用户不存在"),
    USER_EXIST(500008, "用户已经存在"),
    OPEN_ID_IS_NULL(500009,"openid 不存在"),

    ;

    private int code;
    private String msg;


}
